<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>CUDNN Frontend API: cudnn_backend_base.h Source File</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">CUDNN Frontend API
   &#160;<span id="projectnumber">8.3.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('dc/d11/cudnn__backend__base_8h_source.html','../../');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">cudnn_backend_base.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="../../dc/d11/cudnn__backend__base_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * Permission is hereby granted, free of charge, to any person obtaining a</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * copy of this software and associated documentation files (the &quot;Software&quot;),</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * to deal in the Software without restriction, including without limitation</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * the rights to use, copy, modify, merge, publish, distribute, sublicense,</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> * and/or sell copies of the Software, and to permit persons to whom the</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * Software is furnished to do so, subject to the following conditions:</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * The above copyright notice and this permission notice shall be included in</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * all copies or substantial portions of the Software.</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> * DEALINGS IN THE SOFTWARE.</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#include &lt;ostream&gt;</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#include &lt;cudnn.h&gt;</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="../../df/de1/namespacecudnn__frontend.html">   29</a></span>&#160;<span class="keyword">namespace </span><a class="code" href="../../df/de1/namespacecudnn__frontend.html">cudnn_frontend</a> {</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;</div><div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="../../d5/d14/classcudnn__frontend_1_1OpaqueBackendPointer.html">   36</a></span>&#160;<span class="keyword">class </span><a class="code" href="../../d5/d14/classcudnn__frontend_1_1OpaqueBackendPointer.html">OpaqueBackendPointer</a> {</div><div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="../../d5/d14/classcudnn__frontend_1_1OpaqueBackendPointer.html#a47968d641c0da8d33882f86d8afa30b4">   37</a></span>&#160;    cudnnBackendDescriptor_t <a class="code" href="../../d5/d14/classcudnn__frontend_1_1OpaqueBackendPointer.html#a47968d641c0da8d33882f86d8afa30b4">m_desc</a> = <span class="keyword">nullptr</span>;               </div><div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="../../d5/d14/classcudnn__frontend_1_1OpaqueBackendPointer.html#a10487abe0a45d35824ec75b0d3894f21">   38</a></span>&#160;    cudnnStatus_t <a class="code" href="../../d5/d14/classcudnn__frontend_1_1OpaqueBackendPointer.html#a10487abe0a45d35824ec75b0d3894f21">status</a>            = CUDNN_STATUS_SUCCESS;  </div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;   <span class="keyword">public</span>:</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    <a class="code" href="../../d5/d14/classcudnn__frontend_1_1OpaqueBackendPointer.html#a42a928eb5b2524d1c3f67b7200dd53c9">OpaqueBackendPointer</a>(<span class="keyword">const</span> <a class="code" href="../../d5/d14/classcudnn__frontend_1_1OpaqueBackendPointer.html">OpaqueBackendPointer</a>&amp;) = <span class="keyword">delete</span>;  </div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    <a class="code" href="../../d5/d14/classcudnn__frontend_1_1OpaqueBackendPointer.html">OpaqueBackendPointer</a>&amp;</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    <a class="code" href="../../d5/d14/classcudnn__frontend_1_1OpaqueBackendPointer.html#adf5bf20f5bdfbfdecd05360830b34b89">operator=</a>(<span class="keyword">const</span> <a class="code" href="../../d5/d14/classcudnn__frontend_1_1OpaqueBackendPointer.html">OpaqueBackendPointer</a>&amp;)       = <span class="keyword">delete</span>;</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    <a class="code" href="../../d5/d14/classcudnn__frontend_1_1OpaqueBackendPointer.html#a42a928eb5b2524d1c3f67b7200dd53c9">OpaqueBackendPointer</a>(<a class="code" href="../../d5/d14/classcudnn__frontend_1_1OpaqueBackendPointer.html">OpaqueBackendPointer</a>&amp;&amp;) = <span class="keywordflow">default</span>;</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;</div><div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="../../d5/d14/classcudnn__frontend_1_1OpaqueBackendPointer.html#aadf0c53d7aedb1c6c121b2736e98b2dd">   50</a></span>&#160;    <a class="code" href="../../d5/d14/classcudnn__frontend_1_1OpaqueBackendPointer.html#aadf0c53d7aedb1c6c121b2736e98b2dd">OpaqueBackendPointer</a>(cudnnBackendDescriptorType_t <a class="code" href="../../db/d0a/classstd_1_1conditional_1_1type.html">type</a>) { status = cudnnBackendCreateDescriptor(type, &amp;m_desc); }</div><div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="../../d5/d14/classcudnn__frontend_1_1OpaqueBackendPointer.html#a9f549dd95873ac3a02689ef97f4a6c75">   55</a></span>&#160;    <a class="code" href="../../d5/d14/classcudnn__frontend_1_1OpaqueBackendPointer.html#a9f549dd95873ac3a02689ef97f4a6c75">~OpaqueBackendPointer</a>() { cudnnBackendDestroyDescriptor(m_desc); };</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    cudnnBackendDescriptor_t <span class="keyword">const</span>&amp;</div><div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="../../d5/d14/classcudnn__frontend_1_1OpaqueBackendPointer.html#ac1700c7d96af0250e5721f5e5f9d95bc">   62</a></span>&#160;    <a class="code" href="../../d5/d14/classcudnn__frontend_1_1OpaqueBackendPointer.html#ac1700c7d96af0250e5721f5e5f9d95bc">get_backend_descriptor</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="../../d5/d14/classcudnn__frontend_1_1OpaqueBackendPointer.html#a47968d641c0da8d33882f86d8afa30b4">m_desc</a>;</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    }</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    cudnnStatus_t</div><div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="../../d5/d14/classcudnn__frontend_1_1OpaqueBackendPointer.html#abd4f69554da364008f3780e9dc3a5bfc">   70</a></span>&#160;    <a class="code" href="../../d5/d14/classcudnn__frontend_1_1OpaqueBackendPointer.html#abd4f69554da364008f3780e9dc3a5bfc">get_status</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="../../d5/d14/classcudnn__frontend_1_1OpaqueBackendPointer.html#a10487abe0a45d35824ec75b0d3894f21">status</a>;</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    }</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    <span class="keywordtype">bool</span></div><div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="../../d5/d14/classcudnn__frontend_1_1OpaqueBackendPointer.html#aa9059097bb9161d454c6e17b03ca236c">   78</a></span>&#160;    <a class="code" href="../../d5/d14/classcudnn__frontend_1_1OpaqueBackendPointer.html#aa9059097bb9161d454c6e17b03ca236c">is_good</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;        <span class="keywordflow">return</span> status == CUDNN_STATUS_SUCCESS;</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    }</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;};</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;</div><div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="../../df/de1/namespacecudnn__frontend.html#ac94d582cdfa2adf3d68a4e675e5d69aa">   84</a></span>&#160;<span class="keyword">using</span> <a class="code" href="../../df/de1/namespacecudnn__frontend.html#ac94d582cdfa2adf3d68a4e675e5d69aa">ManagedOpaqueDescriptor</a> = std::shared_ptr&lt;OpaqueBackendPointer&gt;;</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;<span class="keyword">static</span> <a class="code" href="../../df/de1/namespacecudnn__frontend.html#ac94d582cdfa2adf3d68a4e675e5d69aa">ManagedOpaqueDescriptor</a></div><div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="../../df/de1/namespacecudnn__frontend.html#aee9c79eb8972c944de14ccd70bf5db43">   88</a></span>&#160;<a class="code" href="../../df/de1/namespacecudnn__frontend.html#aee9c79eb8972c944de14ccd70bf5db43">make_shared_backend_pointer</a>(cudnnBackendDescriptorType_t <a class="code" href="../../db/d0a/classstd_1_1conditional_1_1type.html">type</a>) {</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;    <span class="keywordflow">return</span> std::make_shared&lt;OpaqueBackendPointer&gt;(type);</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;}</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;</div><div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="../../d6/d88/classcudnn__frontend_1_1BackendDescriptor.html">   99</a></span>&#160;<span class="keyword">class </span><a class="code" href="../../d6/d88/classcudnn__frontend_1_1BackendDescriptor.html">BackendDescriptor</a> {</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;   <span class="keyword">public</span>:</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;    <span class="keyword">virtual</span> std::string</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;    describe() <span class="keyword">const</span> = 0;</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;    cudnnBackendDescriptor_t</div><div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="../../d6/d88/classcudnn__frontend_1_1BackendDescriptor.html#a3aa1ab42ab96471092185f15e22c1e9f">  108</a></span>&#160;    <a class="code" href="../../d6/d88/classcudnn__frontend_1_1BackendDescriptor.html#a3aa1ab42ab96471092185f15e22c1e9f">get_raw_desc</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;        <span class="keywordflow">return</span> pointer-&gt;get_backend_descriptor();</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;    }</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;    cudnnStatus_t</div><div class="line"><a name="l00114"></a><span class="lineno"><a class="line" href="../../d6/d88/classcudnn__frontend_1_1BackendDescriptor.html#af34344e365e6422ee86955349bf80b49">  114</a></span>&#160;    <a class="code" href="../../d6/d88/classcudnn__frontend_1_1BackendDescriptor.html#af34344e365e6422ee86955349bf80b49">get_status</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="../../d5/d14/classcudnn__frontend_1_1OpaqueBackendPointer.html#a10487abe0a45d35824ec75b0d3894f21">status</a>;</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;    }</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;    <span class="keywordtype">void</span></div><div class="line"><a name="l00120"></a><span class="lineno"><a class="line" href="../../d6/d88/classcudnn__frontend_1_1BackendDescriptor.html#a3ef02443f20b90223baf5f1922505eab">  120</a></span>&#160;    <a class="code" href="../../d6/d88/classcudnn__frontend_1_1BackendDescriptor.html#a3ef02443f20b90223baf5f1922505eab">set_status</a>(cudnnStatus_t <span class="keyword">const</span> status_)<span class="keyword"> const </span>{</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;        <a class="code" href="../../d5/d14/classcudnn__frontend_1_1OpaqueBackendPointer.html#a10487abe0a45d35824ec75b0d3894f21">status</a> = status_;</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;    }</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;    <span class="keywordtype">void</span></div><div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="../../d6/d88/classcudnn__frontend_1_1BackendDescriptor.html#a1748a5c560905314930c37b2ed1a54d2">  126</a></span>&#160;    <a class="code" href="../../d6/d88/classcudnn__frontend_1_1BackendDescriptor.html#a1748a5c560905314930c37b2ed1a54d2">set_error</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* message)<span class="keyword"> const </span>{</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;        err_msg = message;</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;    }</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">char</span>*</div><div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="../../d6/d88/classcudnn__frontend_1_1BackendDescriptor.html#abfde0f34b0bf49c45d3d9c0408284f6f">  132</a></span>&#160;    <a class="code" href="../../d6/d88/classcudnn__frontend_1_1BackendDescriptor.html#abfde0f34b0bf49c45d3d9c0408284f6f">get_error</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;        <span class="keywordflow">return</span> err_msg.c_str();</div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;    }</div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;    <a class="code" href="../../df/de1/namespacecudnn__frontend.html#ac94d582cdfa2adf3d68a4e675e5d69aa">ManagedOpaqueDescriptor</a></div><div class="line"><a name="l00138"></a><span class="lineno"><a class="line" href="../../d6/d88/classcudnn__frontend_1_1BackendDescriptor.html#a57c83e78374bac747b5660fb271b947a">  138</a></span>&#160;    <a class="code" href="../../d6/d88/classcudnn__frontend_1_1BackendDescriptor.html#a57c83e78374bac747b5660fb271b947a">get_desc</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;        <span class="keywordflow">return</span> pointer;</div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;    }</div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;</div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;    cudnnStatus_t</div><div class="line"><a name="l00144"></a><span class="lineno"><a class="line" href="../../d6/d88/classcudnn__frontend_1_1BackendDescriptor.html#a070df0d11a52793ce9480dbdcee0c24e">  144</a></span>&#160;    <a class="code" href="../../d6/d88/classcudnn__frontend_1_1BackendDescriptor.html#a070df0d11a52793ce9480dbdcee0c24e">initialize_managed_backend_pointer</a>(cudnnBackendDescriptorType_t <a class="code" href="../../db/d0a/classstd_1_1conditional_1_1type.html">type</a>) {</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;        pointer = <a class="code" href="../../df/de1/namespacecudnn__frontend.html#aee9c79eb8972c944de14ccd70bf5db43">make_shared_backend_pointer</a>(type);</div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;        <span class="keywordflow">return</span> pointer-&gt;get_status();</div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;    }</div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;</div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;   <span class="keyword">protected</span>:</div><div class="line"><a name="l00154"></a><span class="lineno"><a class="line" href="../../d6/d88/classcudnn__frontend_1_1BackendDescriptor.html#a8aa93686ca88410fc048b05155148183">  154</a></span>&#160;    <a class="code" href="../../d6/d88/classcudnn__frontend_1_1BackendDescriptor.html#a8aa93686ca88410fc048b05155148183">BackendDescriptor</a>(<a class="code" href="../../df/de1/namespacecudnn__frontend.html#ac94d582cdfa2adf3d68a4e675e5d69aa">ManagedOpaqueDescriptor</a> pointer_, cudnnStatus_t status_, std::string err_msg_)</div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;        : pointer(pointer_), <a class="code" href="../../d5/d14/classcudnn__frontend_1_1OpaqueBackendPointer.html#a10487abe0a45d35824ec75b0d3894f21">status</a>(status_), err_msg(err_msg_) {}</div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;    <a class="code" href="../../d6/d88/classcudnn__frontend_1_1BackendDescriptor.html">BackendDescriptor</a>() = <span class="keywordflow">default</span>;</div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;</div><div class="line"><a name="l00158"></a><span class="lineno"><a class="line" href="../../d6/d88/classcudnn__frontend_1_1BackendDescriptor.html#a62312f29dbbc7c11c1da54a2ad41c52f">  158</a></span>&#160;    <a class="code" href="../../df/de1/namespacecudnn__frontend.html#ac94d582cdfa2adf3d68a4e675e5d69aa">ManagedOpaqueDescriptor</a> <a class="code" href="../../d6/d88/classcudnn__frontend_1_1BackendDescriptor.html#a62312f29dbbc7c11c1da54a2ad41c52f">pointer</a>;  </div><div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;</div><div class="line"><a name="l00160"></a><span class="lineno"><a class="line" href="../../d6/d88/classcudnn__frontend_1_1BackendDescriptor.html#a8a5466c444f2de721118334ac876c6ba">  160</a></span>&#160;    <span class="keyword">mutable</span> cudnnStatus_t <a class="code" href="../../d5/d14/classcudnn__frontend_1_1OpaqueBackendPointer.html#a10487abe0a45d35824ec75b0d3894f21">status</a> = CUDNN_STATUS_SUCCESS;  </div><div class="line"><a name="l00161"></a><span class="lineno"><a class="line" href="../../d6/d88/classcudnn__frontend_1_1BackendDescriptor.html#a0d416655dab2b5a675fecb5df9ea8521">  161</a></span>&#160;    <span class="keyword">mutable</span> std::string <a class="code" href="../../d6/d88/classcudnn__frontend_1_1BackendDescriptor.html#a0d416655dab2b5a675fecb5df9ea8521">err_msg</a>;                          </div><div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;};</div><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;}</div><div class="ttc" id="classcudnn__frontend_1_1OpaqueBackendPointer_html_a9f549dd95873ac3a02689ef97f4a6c75"><div class="ttname"><a href="../../d5/d14/classcudnn__frontend_1_1OpaqueBackendPointer.html#a9f549dd95873ac3a02689ef97f4a6c75">cudnn_frontend::OpaqueBackendPointer::~OpaqueBackendPointer</a></div><div class="ttdeci">~OpaqueBackendPointer()</div><div class="ttdef"><b>Definition:</b> <a href="../../dc/d11/cudnn__backend__base_8h_source.html#l00055">cudnn_backend_base.h:55</a></div></div>
<div class="ttc" id="classcudnn__frontend_1_1OpaqueBackendPointer_html_a42a928eb5b2524d1c3f67b7200dd53c9"><div class="ttname"><a href="../../d5/d14/classcudnn__frontend_1_1OpaqueBackendPointer.html#a42a928eb5b2524d1c3f67b7200dd53c9">cudnn_frontend::OpaqueBackendPointer::OpaqueBackendPointer</a></div><div class="ttdeci">OpaqueBackendPointer(const OpaqueBackendPointer &amp;)=delete</div><div class="ttdoc">Delete the copy constructor to prevent bad copies. </div></div>
<div class="ttc" id="classcudnn__frontend_1_1BackendDescriptor_html_a3ef02443f20b90223baf5f1922505eab"><div class="ttname"><a href="../../d6/d88/classcudnn__frontend_1_1BackendDescriptor.html#a3ef02443f20b90223baf5f1922505eab">cudnn_frontend::BackendDescriptor::set_status</a></div><div class="ttdeci">void set_status(cudnnStatus_t const status_) const</div><div class="ttdoc">Set status of the descriptor. </div><div class="ttdef"><b>Definition:</b> <a href="../../dc/d11/cudnn__backend__base_8h_source.html#l00120">cudnn_backend_base.h:120</a></div></div>
<div class="ttc" id="classcudnn__frontend_1_1BackendDescriptor_html_a070df0d11a52793ce9480dbdcee0c24e"><div class="ttname"><a href="../../d6/d88/classcudnn__frontend_1_1BackendDescriptor.html#a070df0d11a52793ce9480dbdcee0c24e">cudnn_frontend::BackendDescriptor::initialize_managed_backend_pointer</a></div><div class="ttdeci">cudnnStatus_t initialize_managed_backend_pointer(cudnnBackendDescriptorType_t type)</div><div class="ttdoc">Initializes the underlying managed descriptor. </div><div class="ttdef"><b>Definition:</b> <a href="../../dc/d11/cudnn__backend__base_8h_source.html#l00144">cudnn_backend_base.h:144</a></div></div>
<div class="ttc" id="classcudnn__frontend_1_1OpaqueBackendPointer_html"><div class="ttname"><a href="../../d5/d14/classcudnn__frontend_1_1OpaqueBackendPointer.html">cudnn_frontend::OpaqueBackendPointer</a></div><div class="ttdef"><b>Definition:</b> <a href="../../dc/d11/cudnn__backend__base_8h_source.html#l00036">cudnn_backend_base.h:36</a></div></div>
<div class="ttc" id="classcudnn__frontend_1_1OpaqueBackendPointer_html_a47968d641c0da8d33882f86d8afa30b4"><div class="ttname"><a href="../../d5/d14/classcudnn__frontend_1_1OpaqueBackendPointer.html#a47968d641c0da8d33882f86d8afa30b4">cudnn_frontend::OpaqueBackendPointer::m_desc</a></div><div class="ttdeci">cudnnBackendDescriptor_t m_desc</div><div class="ttdoc">Raw void pointer. </div><div class="ttdef"><b>Definition:</b> <a href="../../dc/d11/cudnn__backend__base_8h_source.html#l00037">cudnn_backend_base.h:37</a></div></div>
<div class="ttc" id="classcudnn__frontend_1_1BackendDescriptor_html"><div class="ttname"><a href="../../d6/d88/classcudnn__frontend_1_1BackendDescriptor.html">cudnn_frontend::BackendDescriptor</a></div><div class="ttdef"><b>Definition:</b> <a href="../../dc/d11/cudnn__backend__base_8h_source.html#l00099">cudnn_backend_base.h:99</a></div></div>
<div class="ttc" id="classcudnn__frontend_1_1OpaqueBackendPointer_html_aa9059097bb9161d454c6e17b03ca236c"><div class="ttname"><a href="../../d5/d14/classcudnn__frontend_1_1OpaqueBackendPointer.html#aa9059097bb9161d454c6e17b03ca236c">cudnn_frontend::OpaqueBackendPointer::is_good</a></div><div class="ttdeci">bool is_good() const</div><div class="ttdef"><b>Definition:</b> <a href="../../dc/d11/cudnn__backend__base_8h_source.html#l00078">cudnn_backend_base.h:78</a></div></div>
<div class="ttc" id="namespacecudnn__frontend_html_aee9c79eb8972c944de14ccd70bf5db43"><div class="ttname"><a href="../../df/de1/namespacecudnn__frontend.html#aee9c79eb8972c944de14ccd70bf5db43">cudnn_frontend::make_shared_backend_pointer</a></div><div class="ttdeci">static ManagedOpaqueDescriptor make_shared_backend_pointer(cudnnBackendDescriptorType_t type)</div><div class="ttdef"><b>Definition:</b> <a href="../../dc/d11/cudnn__backend__base_8h_source.html#l00088">cudnn_backend_base.h:88</a></div></div>
<div class="ttc" id="classcudnn__frontend_1_1BackendDescriptor_html_a3aa1ab42ab96471092185f15e22c1e9f"><div class="ttname"><a href="../../d6/d88/classcudnn__frontend_1_1BackendDescriptor.html#a3aa1ab42ab96471092185f15e22c1e9f">cudnn_frontend::BackendDescriptor::get_raw_desc</a></div><div class="ttdeci">cudnnBackendDescriptor_t get_raw_desc() const</div><div class="ttdef"><b>Definition:</b> <a href="../../dc/d11/cudnn__backend__base_8h_source.html#l00108">cudnn_backend_base.h:108</a></div></div>
<div class="ttc" id="classcudnn__frontend_1_1BackendDescriptor_html_a57c83e78374bac747b5660fb271b947a"><div class="ttname"><a href="../../d6/d88/classcudnn__frontend_1_1BackendDescriptor.html#a57c83e78374bac747b5660fb271b947a">cudnn_frontend::BackendDescriptor::get_desc</a></div><div class="ttdeci">ManagedOpaqueDescriptor get_desc() const</div><div class="ttdoc">Returns a copy of underlying managed descriptor. </div><div class="ttdef"><b>Definition:</b> <a href="../../dc/d11/cudnn__backend__base_8h_source.html#l00138">cudnn_backend_base.h:138</a></div></div>
<div class="ttc" id="classcudnn__frontend_1_1OpaqueBackendPointer_html_a10487abe0a45d35824ec75b0d3894f21"><div class="ttname"><a href="../../d5/d14/classcudnn__frontend_1_1OpaqueBackendPointer.html#a10487abe0a45d35824ec75b0d3894f21">cudnn_frontend::OpaqueBackendPointer::status</a></div><div class="ttdeci">cudnnStatus_t status</div><div class="ttdoc">status of creation of the Descriptor </div><div class="ttdef"><b>Definition:</b> <a href="../../dc/d11/cudnn__backend__base_8h_source.html#l00038">cudnn_backend_base.h:38</a></div></div>
<div class="ttc" id="classcudnn__frontend_1_1OpaqueBackendPointer_html_adf5bf20f5bdfbfdecd05360830b34b89"><div class="ttname"><a href="../../d5/d14/classcudnn__frontend_1_1OpaqueBackendPointer.html#adf5bf20f5bdfbfdecd05360830b34b89">cudnn_frontend::OpaqueBackendPointer::operator=</a></div><div class="ttdeci">OpaqueBackendPointer &amp; operator=(const OpaqueBackendPointer &amp;)=delete</div></div>
<div class="ttc" id="classcudnn__frontend_1_1OpaqueBackendPointer_html_ac1700c7d96af0250e5721f5e5f9d95bc"><div class="ttname"><a href="../../d5/d14/classcudnn__frontend_1_1OpaqueBackendPointer.html#ac1700c7d96af0250e5721f5e5f9d95bc">cudnn_frontend::OpaqueBackendPointer::get_backend_descriptor</a></div><div class="ttdeci">cudnnBackendDescriptor_t const  &amp; get_backend_descriptor() const</div><div class="ttdef"><b>Definition:</b> <a href="../../dc/d11/cudnn__backend__base_8h_source.html#l00062">cudnn_backend_base.h:62</a></div></div>
<div class="ttc" id="classcudnn__frontend_1_1OpaqueBackendPointer_html_abd4f69554da364008f3780e9dc3a5bfc"><div class="ttname"><a href="../../d5/d14/classcudnn__frontend_1_1OpaqueBackendPointer.html#abd4f69554da364008f3780e9dc3a5bfc">cudnn_frontend::OpaqueBackendPointer::get_status</a></div><div class="ttdeci">cudnnStatus_t get_status() const</div><div class="ttdef"><b>Definition:</b> <a href="../../dc/d11/cudnn__backend__base_8h_source.html#l00070">cudnn_backend_base.h:70</a></div></div>
<div class="ttc" id="classcudnn__frontend_1_1OpaqueBackendPointer_html_aadf0c53d7aedb1c6c121b2736e98b2dd"><div class="ttname"><a href="../../d5/d14/classcudnn__frontend_1_1OpaqueBackendPointer.html#aadf0c53d7aedb1c6c121b2736e98b2dd">cudnn_frontend::OpaqueBackendPointer::OpaqueBackendPointer</a></div><div class="ttdeci">OpaqueBackendPointer(cudnnBackendDescriptorType_t type)</div><div class="ttdef"><b>Definition:</b> <a href="../../dc/d11/cudnn__backend__base_8h_source.html#l00050">cudnn_backend_base.h:50</a></div></div>
<div class="ttc" id="classcudnn__frontend_1_1BackendDescriptor_html_af34344e365e6422ee86955349bf80b49"><div class="ttname"><a href="../../d6/d88/classcudnn__frontend_1_1BackendDescriptor.html#af34344e365e6422ee86955349bf80b49">cudnn_frontend::BackendDescriptor::get_status</a></div><div class="ttdeci">cudnnStatus_t get_status() const</div><div class="ttdoc">Current status of the descriptor. </div><div class="ttdef"><b>Definition:</b> <a href="../../dc/d11/cudnn__backend__base_8h_source.html#l00114">cudnn_backend_base.h:114</a></div></div>
<div class="ttc" id="namespacecudnn__frontend_html_ac94d582cdfa2adf3d68a4e675e5d69aa"><div class="ttname"><a href="../../df/de1/namespacecudnn__frontend.html#ac94d582cdfa2adf3d68a4e675e5d69aa">cudnn_frontend::ManagedOpaqueDescriptor</a></div><div class="ttdeci">std::shared_ptr&lt; OpaqueBackendPointer &gt; ManagedOpaqueDescriptor</div><div class="ttdef"><b>Definition:</b> <a href="../../dc/d11/cudnn__backend__base_8h_source.html#l00084">cudnn_backend_base.h:84</a></div></div>
<div class="ttc" id="namespacecudnn__frontend_html"><div class="ttname"><a href="../../df/de1/namespacecudnn__frontend.html">cudnn_frontend</a></div><div class="ttdef"><b>Definition:</b> <a href="../../dc/d11/cudnn__backend__base_8h_source.html#l00029">cudnn_backend_base.h:29</a></div></div>
<div class="ttc" id="classcudnn__frontend_1_1BackendDescriptor_html_abfde0f34b0bf49c45d3d9c0408284f6f"><div class="ttname"><a href="../../d6/d88/classcudnn__frontend_1_1BackendDescriptor.html#abfde0f34b0bf49c45d3d9c0408284f6f">cudnn_frontend::BackendDescriptor::get_error</a></div><div class="ttdeci">const char * get_error() const</div><div class="ttdoc">Diagonistic error message if any. </div><div class="ttdef"><b>Definition:</b> <a href="../../dc/d11/cudnn__backend__base_8h_source.html#l00132">cudnn_backend_base.h:132</a></div></div>
<div class="ttc" id="classstd_1_1conditional_1_1type_html"><div class="ttname"><a href="../../db/d0a/classstd_1_1conditional_1_1type.html">type</a></div></div>
<div class="ttc" id="classcudnn__frontend_1_1BackendDescriptor_html_a1748a5c560905314930c37b2ed1a54d2"><div class="ttname"><a href="../../d6/d88/classcudnn__frontend_1_1BackendDescriptor.html#a1748a5c560905314930c37b2ed1a54d2">cudnn_frontend::BackendDescriptor::set_error</a></div><div class="ttdeci">void set_error(const char *message) const</div><div class="ttdoc">Set Diagonistic error message. </div><div class="ttdef"><b>Definition:</b> <a href="../../dc/d11/cudnn__backend__base_8h_source.html#l00126">cudnn_backend_base.h:126</a></div></div>
<div class="ttc" id="classcudnn__frontend_1_1BackendDescriptor_html_a8aa93686ca88410fc048b05155148183"><div class="ttname"><a href="../../d6/d88/classcudnn__frontend_1_1BackendDescriptor.html#a8aa93686ca88410fc048b05155148183">cudnn_frontend::BackendDescriptor::BackendDescriptor</a></div><div class="ttdeci">BackendDescriptor(ManagedOpaqueDescriptor pointer_, cudnnStatus_t status_, std::string err_msg_)</div><div class="ttdef"><b>Definition:</b> <a href="../../dc/d11/cudnn__backend__base_8h_source.html#l00154">cudnn_backend_base.h:154</a></div></div>
<div class="ttc" id="classcudnn__frontend_1_1BackendDescriptor_html_a0d416655dab2b5a675fecb5df9ea8521"><div class="ttname"><a href="../../d6/d88/classcudnn__frontend_1_1BackendDescriptor.html#a0d416655dab2b5a675fecb5df9ea8521">cudnn_frontend::BackendDescriptor::err_msg</a></div><div class="ttdeci">std::string err_msg</div><div class="ttdoc">Error message if any being set. </div><div class="ttdef"><b>Definition:</b> <a href="../../dc/d11/cudnn__backend__base_8h_source.html#l00161">cudnn_backend_base.h:161</a></div></div>
<div class="ttc" id="classcudnn__frontend_1_1BackendDescriptor_html_a62312f29dbbc7c11c1da54a2ad41c52f"><div class="ttname"><a href="../../d6/d88/classcudnn__frontend_1_1BackendDescriptor.html#a62312f29dbbc7c11c1da54a2ad41c52f">cudnn_frontend::BackendDescriptor::pointer</a></div><div class="ttdeci">ManagedOpaqueDescriptor pointer</div><div class="ttdef"><b>Definition:</b> <a href="../../dc/d11/cudnn__backend__base_8h_source.html#l00158">cudnn_backend_base.h:158</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="../../dc/d11/cudnn__backend__base_8h.html">cudnn_backend_base.h</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
